package com.medium.house.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 主要用途: 用户信息管理
 *
 * @author yizhiwazi
 * @see Api 描述类/接口的主要用途
 * @see ApiOperation 描述方法用途
 * @see ApiImplicitParams 描述方法的参数(Multi-Params)
 * @see ApiImplicitParam  描述方法的参数
 * @see ApiIgnore 忽略某类/方法/参数的文档
 */
@Api(value = "/user",description="用户操作",tags={"用户操作接口"})
@RestController()
@RequestMapping("/user/")
@SuppressWarnings("all")
public class WechatUserController_bak {

    /*@ApiOperation("获取列表")
    @GetMapping("getU")
    public ResultVO get(long id){
        return  ResultVOUtil.success(wechatUserService.getById(id));
    }

    @ApiOperation("新增用户")
    @PostMapping("save")
    public ResultVO save(WechatUser wechatUser) {
        return ResultVOUtil.success(wechatUserService.add(wechatUser));
    }

    @ApiOperation("更新用户")
    @ApiImplicitParam(name = "user", value = "单个用户信息", dataType = "WechatUser")
    @PutMapping("update")
    public ResultVO update(WechatUser wechatUser) {
        return ResultVOUtil.success(wechatUserService.update(wechatUser));
    }

    @ApiOperation("批量删除")
    @ApiImplicitParam(name = "wechatUser", value = "N个用户信息", dataType = "List<WechatUser>")
    @DeleteMapping("delete")
    public ResultVO delete(@RequestBody List<WechatUser> wechatUser) {
        return ResultVOUtil.success(wechatUserService.removeAll(wechatUser));
    }*/
}
